<template>
    <div class="blogcontent">
      <h1>{{ blogList[id].name }}</h1>
      <h3>{{ blogList[id].date1 }}</h3>
      <h4>{{ blogList[id].type[0] }}  {{ blogList[id].resource }}</h4>
      <p>{{ blogList[id].desc }}</p>
    </div>
</template>

<script>
export default {
  name: 'blogContent',
  data () {
    return {
      id: this.$route.params.id - 1
    }
  },
  computed: {
    blogList () {
      return this.$store.getters.manageBlogs
    }
  }
}
</script>

<style lang="less" scoped>
.flex-colum{
  align-items: center;
  display: flex;
  flex-direction: column;
}

.blogcontent {
  // height: 1050px;
  padding: 50px auto;
  .flex-colum();
  justify-content: space-around;
  p{
    font-size: 20px;
    line-height: 40px;
  }
  img{
    margin: 40px auto;
  }
}
</style>
